import request from '@/utils/request'

// 查询商家服务详情列表
export function listMerchantService(query) {
  return request({
    url: '/system/merchantService/list',
    method: 'get',
    params: query
  })
}

// 查询商家服务详情详细
export function getMerchantService(infoId) {
  return request({
    url: '/system/merchantService/' + infoId,
    method: 'get'
  })
}

// 新增商家服务详情
export function addMerchantService(data) {
  return request({
    url: '/system/merchantService',
    method: 'post',
    data: data
  })
}

// 修改商家服务详情
export function updateMerchantService(data) {
  return request({
    url: '/system/merchantService',
    method: 'put',
    data: data
  })
}

// 删除商家服务详情
export function delMerchantService(infoId) {
  return request({
    url: '/system/merchantService/' + infoId,
    method: 'delete'
  })
}
